package com.mdxx.component;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by MD-1 on 2017/8/8.
 */
@ConfigurationProperties(locations = "classpath:init.properties",
        ignoreUnknownFields = false,
        prefix = "init")
@Component
public class ServerParams {
    private String name;
    private String deptName;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getDeptName() {
        return deptName;
    }
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
}
